package example;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import com.easyfun.easyframe.performance.producer.PerformanceProducer;

public class TestPerfProducer
{

    public TestPerfProducer()
    {
    }

    public static void main(String args[])
        throws Exception
    {
        List list = new ArrayList();
        list.addAll(Arrays.asList(new String[] {
            "--broker-list", "192.168.0.250:9092"
        }));
        list.addAll(Arrays.asList(new String[] {
            "--topics", "kafkatopic"
        }));
        list.addAll(Arrays.asList(new String[] {
            "--msg-num", "10000"
        }));
        list.addAll(Arrays.asList(new String[] {
            "--threads", "1"
        }));
        PerformanceProducer.main((String[])list.toArray(new String[0]));
    }
}